<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>部分链接列表</title>
    <!-- 引入Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>

    <style>
        body {
            background-color: #f8f9fa;
        }

        container {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .card {
            margin-bottom: 20px;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
            transition: 0.3s;
            height: 10rem;
            margin: 1rem 1rem;
        }

        .card:hover {
            box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
        }

        .card-body {
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .card-body a {
            font-size: 1.5rem;
            color: black;
            text-decoration: none
        }

        .card-body a:hover {
            color: #0056b3;
            text-decoration: none;
        }
    </style>
</head>

<body>
    <div class="container my-4">
        <h1 class="mb-4">XXX工作环节</h1>
        <div class="d-flex flex-wrap justify-content-start">
            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">数据完整性风险</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">系统访问控制风险</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">变更管理风险</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">往来款项记录不准确风险</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">未按规定设立会计机构、会计岗位并明确职责</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">未按规定配备会计人员及合理内部分工,不相容岗位未分离</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">会计人员职业道德及专业能力不足</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">账务核算不规范风险</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">会计人员未按规定进行工作交接</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">财务信息化管理不到位</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">期末账务处理不完善</a>
                </div>
            </div>

            <div class="card" style="width: 18rem;">
                <div class="card-body">
                    <a href="#" onclick="openModal('b.html')">会计档案管理不完善</a>
                </div>
            </div>
        </div>
    </div>

    <!-- 引入Bootstrap JS -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!--  popper.min.js 用于弹窗、提示、下拉菜单 -->
    <script src="https://cdn.staticfile.org/popper.js/2.9.3/umd/popper.min.js"></script>

    <!-- 最新的 Bootstrap5 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.min.js"></script>

    <script>
        function openModal(url) {
            var modal = document.createElement('div');
            modal.classList.add('modal', 'fade');
            modal.id = 'myModal';

            var modalDialog = document.createElement('div');
            modalDialog.classList.add('modal-dialog');

            var modalContent = document.createElement('div');
            modalContent.classList.add('modal-content');

            var modalHeader = document.createElement('div');
            modalHeader.classList.add('modal-header');
            modalHeader.innerHTML = '<button type="button" class="close" data-dismiss="modal">&times;</button>';

            var modalBody = document.createElement('div');
            modalBody.classList.add('modal-body');
            modalBody.innerHTML = '<iframe src="' + url + '" style="width: 100%; height: 500px; border: none;"></iframe>';

            modalContent.appendChild(modalHeader);
            modalContent.appendChild(modalBody);
            modalDialog.appendChild(modalContent);
            modal.appendChild(modalDialog);

            document.body.appendChild(modal);

            $('#myModal').modal('show');

            $('#myModal').on('hidden.bs.modal', function () {
                $(this).remove();
            });
        }
    </script>

</body>

</html>
